//
//  SettingDetailNavController.m
//  YIJU2.0-HD
//
//  Created by 陈柏兵 on 16/5/9.
//  Copyright © 2016年 张金国. All rights reserved.
//

#import "SettingDetailNavController.h"
#import "Macro.h"

@interface SettingDetailNavController ()

@end

@implementation SettingDetailNavController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (instancetype)initWithRootViewController:(UIViewController *)rootViewController
{
    self = [super initWithRootViewController:rootViewController];
    if (self) {
        self.navigationBar.barTintColor = kSettingBackgroundColor;
        
        self.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor blackColor],NSFontAttributeName:[UIFont systemFontOfSize:19]};
        self.navigationBar.tintColor = [UIColor blackColor];
        
        //自定义返回按钮
        [self.navigationBar setBackIndicatorImage:nil];
        [self.navigationBar setBackIndicatorTransitionMaskImage:nil];
        
        //返回按钮默认文字消失
        [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(NSIntegerMin,NSIntegerMin) forBarMetrics:UIBarMetricsDefault];
    }
    return self;
}




@end
